package 工具包类案例;

public class GJB {
    private GJB(){}
    public static String PJ(int[] arr){
        if(arr==null){
            return null;
        }
        String code="[";
        for (int i = 0; i <arr.length; i++) {
            code += i==arr.length-1?arr[i]:arr[i]+", ";
        }
        code+="]";
        return code;
    }
}
